package com.hai.loggerdemo.service.impl;

import com.hai.loggerdemo.controller.DemoLogger;
import com.hai.loggerdemo.service.HelloService;
import com.hai.loggerdemo.util.StringTools;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;

@Service
public class HelloServiceImpl implements HelloService {
    private static final Logger logger = LoggerFactory.getLogger(HelloServiceImpl.class);
    @Override
    public String hello() {
        StringTools.returnString();
        logger.info("service impl info");
        logger.error("error service impl");
        return "hello";
    }
}
